<%@ page language="java" import="control.database.*" pageEncoding="gb2312"%>

<%
Dpt dpt = new Dpt();

System.out.println("1111111");
System.out.println(request.getParameter("sDptid").toString());

dpt.setDptid(request.getParameter("sDptid").toString());

System.out.println("222");

String sql = dpt.Dpt_Delete();

System.out.println(sql);

DataBase db = new DataBase();
db.executeUpdate(sql);
db.closeStmt();
db.closeConn();

System.out.println("00000");
//out.println(request.getParameter("txtDptno"));
response.sendRedirect("AddSuccessful.jsp");
%>

